/*
 * Message template for communications.
 */
package ws.websk.chatEndpoint2.messages;

/**
 *
 * @author Jens-Marius Nergård Hansen
 */
public class ChatMessage extends Message{
    private String message;     // message to be delivered
    private String nickname;    // nickname (who sent the message)
  
    public ChatMessage(String nickname, String message) {
        super("chat");
        this.message = message;
        this.nickname = nickname;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
